package com.simtop.pojo;

import lombok.Data;

@Data
public class Operate {
    private Integer operateId;//序号

    private String operateStyle;//操作类型

    private String operateUser;//操作人员

    private String operateRoot;//用户权限

    private String operateStatus;//操作状态

    private String operateDate;//操作时间

    private String operateDetail;//详情

    /**
     * 角色id
     */
    private Integer roleId;

    public Operate() {
    }

    public Operate(String operateStyle, String operateUser, String operateStatus, String operateDate, String operateDetail, Integer roleId) {
        this.operateStyle = operateStyle;
        this.operateUser = operateUser;
        //this.operateRoot = operateRoot;
        if(roleId.equals(1)){
            this.operateRoot = "管理员";
        }else if(roleId.equals(2)){
            this.operateRoot = "教师";
        }else if(roleId.equals(3)){
            this.operateRoot = "评审账户";
        }else if(roleId.equals(4)){
            this.operateRoot = "学生";
        }
        this.operateStatus = operateStatus;
        this.operateDate = operateDate;
        this.operateDetail = operateDetail;
    }
}
